<#include "/java_copyright.include">
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first> 
package ${basepackage}.app.service;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import ${basepackage}.app.dao.${className}DAO;
import ${basepackage}.app.model.${className};
import ${basepackage}.framework.base.dao.EntityDao;
import ${basepackage}.framework.base.service.BaseServiceImpl;
import javax.transaction.Transactional;

<#include "/author.include">
@Service("${classNameLower}Service")
@Transactional
public class ${className}ServiceImpl extends BaseServiceImpl<${className},${table.idColumn.javaType}> implements ${className}Service{

	private ${className}DAO ${classNameLower}DAO;
	@Autowired
	public void set${className}DAO(${className}DAO entityDAO){
		this.${classNameLower}DAO = entityDAO;
	}

	public EntityDao getEntityDao() {
		return this.${classNameLower}DAO;
	}
	
}
